package com.jt.helloworld.designpattern.businessdelegate;

public class BusinessDelegate {

    private BusinessLookUp lookUpService = new BusinessLookUp();
    private BusinessService businessService;
    private String serviceType;

    public void setServiceType(String serviceType){
        this.serviceType = serviceType;
    }

    public void daTask(){
        businessService = lookUpService.getBusinessService(serviceType);
        businessService.doProcessing();
    }
}
